import request from '@/utlis/request'

// 获取验证码
export function getCaptcha (data) {
  return request({
    url: '/captcha/sent',
    method: 'post',
    data
  })
}

// 验证验证码
export function verifyCode (params) {
  return request({
    url: '/captcha/verify',
    method: 'get',
    params
  })
}

// 注册账号
export function registryID (data) {
  return request({
    url: '/register/cellphone',
    method: 'post',
    data
  })
}
// 验证手机号
export function check (params) {
  return request({
    url: '/cellphone/existence/check',
    method: 'get',
    params
  })
}

// 用户登录
export function userLogin (data) {
  return request({
    url: '/login/cellphone',
    method: 'post',
    data
  })
}
